#ifndef MUDNMUCKCARD
#define MUDNMUCKCARD
#include "random.h"
#include "gameobject.h"

class Card : public GameObject{
     private:
          int Atk, Def;
          std::string Name, Desc, Img;

     public:
          inline Card(int tAtk =1, int tDef =1, std::string tName ="testcard", std::string tDesc= "just a test", std::string tImg="")
                         :Atk(tAtk), Def(tDef), Name(tName), Desc(tDesc){};

          inline int getID(){return ID;}
          inline int getAtk(){return Atk;}
          inline int getDef(){return Def;}
          inline std::string getName(){return Name;}
          inline std::string getDesc(){return Desc;}
          inline std::string getImg(){return Img;}

};

Card* GenerateRandomCard()
{
     int Atk, Def;
     std::string Name, Desc, Img;
    
     Name = RandomName(5,9);
     Atk = RandomNumber(0,100);
     Def = RandomNumber(0,100 - Atk);
	 ///TODO Implement Generate Random Desc function
     //Desc = GenerateRandomDesc();
     Img = "";
     Card* card = new Card(Atk,Def,Name,Desc,Img);
     return(card);          
}

bool SaveCard(Card* card, std::string filename)
{
	return true;
}
Card* LoadCard(std::string Name, std::string FileName){return(new Card());}
#endif

